package sv.gob.mtps.sib.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import sv.gob.mtps.sib.dao.FondosDAO;
import sv.gob.mtps.sib.model.Fuentefondo;

@Service
public class FondoServiceImpl implements FondosService{
	
	@Autowired
    private FondosDAO fondos;

	@Transactional
	public void addFondo(Fuentefondo fondo) {
		// TODO Auto-generated method stub
		fondos.addFondo(fondo);
	}

	@Transactional
	public List<Fuentefondo> listFondo() {
		// TODO Auto-generated method stub
		return fondos.listFondo();
	}

	@Transactional
	public void removeFondo(Integer id) {
		// TODO Auto-generated method stub
		fondos.removeFondo(id);
	}

	@Transactional
	public Fuentefondo findFondo(Integer id) {
		// TODO Auto-generated method stub
		return fondos.findFondo(id);
	}

	@Transactional
	public void updateFondo(Fuentefondo fondo) {
		// TODO Auto-generated method stub
		fondos.updateFondo(fondo);
		
	}



}
